using System;
using AntEater.ComponentModel;

namespace AntEater.Runtime.UI
{
    /// <summary>
    /// The presenter for the Options View
    /// </summary>
    public class OptionsPresenter : PresenterBase, IOptionsPresenter
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="OptionsPresenter"/> class.
        /// </summary>
        public OptionsPresenter()
            : base(new OptionsView()) {
        }

        /// <summary>
        /// Initializes this instance.
        /// </summary>
        /// <param name="context">The context.</param>
        public override void Initialize(PresenterContext context) {
            base.Initialize(context);
        }

        /// <summary>
        /// Gets the view.
        /// </summary>
        /// <value>The view.</value>
        public new OptionsView View {
            get { return (OptionsView)base.View; }
            protected set { base.View = value; }
        }

        /// <summary>
        /// Gets the external build properties.
        /// </summary>
        /// <value>The external build properties.</value>
        public ExternalBuildPropertyCollection ExternalBuildProperties {
            get { return this.View.ExternalBuildProperties; }
        }
    }
}
